When populating your Distributed File System (DFS) namespace using PowerShell, you might notice a tiny quirk as I did. A .DFSFolderLink file gets left behind when using PowerShell. Using the GUI for DFS Management, this file gets deleted when a folder is created at that same level. You can see the file in the image above. The other folder targets work fine (and have … [Read more...]
Jeffrey Snover talks DevOpsification of Windows Server
Jeffrey Snover presented at the WinOps Conference in May. The session is now available to watch on YouTube. The topic discussed is 'The DevOpsification of Windows Server'. Jeffrey Snover, a technical fellow at Microsoft, is the chief architect of Windows Server 2016 so he has been able to shift a lot of functionality from the traditional operator model to work with the DevOps … [Read more...]
PowerShell script to query AD for number of accounts with expired passwords
With a recent change to our password policy, some users' passwords began expiring more frequently than before. This has had our phone support seeing an increase in calls. In order to monitor the situation, we wanted to see numbers for those groups regarding how many accounts had expired passwords and were another potential phone call. This script is written with a function … [Read more...]
PowerShell script to update Sophos Endpoint Security and Control policies
Managing an enterprise organization antivirus with Sophos Endpoint Security and Control, one thing that I have found weird about Sophos is the way that it handles policies. You can use group policies to control a setting on the client. However, if the client changes its configuration away from the settings, for example, removing a scheduled scan or changing any setting … [Read more...]
Browse the web with PowerShell
PowerShell can be used to scrape websites for parsable content. This can allow your script to make smart decisions based on http, https, ftp, or file requests available. The cmdlet Invoke-WebRequest has been in PowerShell since version 3.0. It is able to take different parameters and return the webpage as an object. You can then use standard PowerShell parsing in order to … [Read more...]