The following script will allow you to sync scheduled tasks to a local server from a remote one. You can modify the source and target folders, and that’s good because this script will wipe out the target folder (the one on the local host) every time it’s run. Of course you could change that behavior… Read more »
Posts Categorized: Windows Administration
SQL Mirror stuck Synchronizing after failover
I recently failed over my primary SQL database to it’s copy on the mirror SQL server. This part worked well, however when I went to fail back the database displayed “Primary / Synchronizing …” In this state it’s impossible to failover. When looking into this further I checked the Mirror Monitoring tool in SQL and… Read more »
Use PowerShell to Upload Files to SharePoint 2010
The following powershell functions can be loaded and then called like this “UploadToLibrary $filename $siteURL $listname” This script was hacked out of the “FCI SharePoint Upload Powershell script” available on TechNet. I removed the portions responsible for modifying source files, migrating file properties, etc so I could use these functions to easily upload files from… Read more »
Comparing Active Directory Group Membership with Powershell
One of the ways that PowerShell shines for me is in examples like this. I had a user who had access to network resources not managed directly in AD. This application uses LDAP integration to decide which users have access. A user wanted to know which group they were missing membership from. I used the… Read more »
File transfer between Windows 7 and 2008R2 hangs
Immediately after starting a file transfer, but generally after some small amount of data has been transferred, the file transfer seems to die. I experienced this on a Windows 7 Client and 2008R2 server while transferring a series of large files. I attempted to stop active AV checking temporarily, which had no effect. I re-enabled… Read more »
Automating Windows Password Changes in PowerShell
Automating Windows Password Changes in PowerShell Many organizations have a need for scheduled, automated windows local admin password rotations with reporting functions. The following PowerShell script covers these requirements. It uses a CSV to input the computers which need a password change. This could easily be changed to pipe directly from AD, some database, or… Read more »