by skufel | Mar 25, 2015 | Automation, Scripting, Windows
If you want to replace string in multiple files name you can simply use PowerShell for that. Dir -Recurse | Rename-Item -NewName { $_.name -replace "file","name-of-file"...
by skufel | Oct 30, 2014 | Automation, Infrastructure, Scripting, SysAdmin, Windows
If there is a need to pass specific credentials to Get-WmiObject in order to gather information from remote machine, here is how you can do it: $LAdmin = "DOMAIN\Administrator" $LPassword = ConvertTo-SecureString "Password!" -AsPlainText -Force...
by skufel | Sep 30, 2014 | Databases, Scripting, Windows
When you try to connect to SQL Server from PowerShell script and you get following message: Unable to find type [Microsoft.SqlServer.Management.Smo.Server] then you have to download and install following components: Microsoft System CLR Types for SQL Server 2008...
by skufel | May 26, 2014 | Infrastructure, Windows
Windows Server 2012 Windows Server 2012 R2 Feature Removed Deprecated Removed Deprecated AD FS v1 Web Agent x AD FS in-place upgrade from AD FS 1.0 or “out of box” AD FS 2.0 x AD FS support for “Resource Group” x AD FS support for NT Token mode x AD FS support for...
by skufel | Mar 29, 2014 | Infrastructure, Scripting, Security, SysAdmin, Windows
Sometimes when you start machine with BitLocker enabled and same time some storage device was connected to USB port, BitLocker might request Recovery Key. This happens because USB ports is listed on boot device search list. To avoid this type of event best idea is to...
by skufel | Mar 26, 2014 | Office, Windows
What to do when Office 365 shows you message “Something went wrong”? If you get this error, go to http://support.microsoft.com/kb/2822317/en-us, then download and run Office Troubleshooter. When you run it it will ask if you want to Apply Fix (of course...