Add a signature to Office 365 emails with PowerShell
The PowerShell script described in this post allows you to add an email signature to all your Office 365 users.Read More
View ArticleRetrieving Share Permissions does not list all permissions
I've been using the script below, found in many places on the web, to retrieve a list of permissions set on shares.The problem with it is that it seems to not return all permission that i can see when...
View ArticlePart–2 : Working with Event Logs using PowerShell :- Get-EventLog
There is no benefit of PowerShell if we are exploring “Event Logs” using GUI tools. So let’s start working on PowerShell console.Read More
View ArticleManaging Dell PowerEdge VRTX using Windows PowerShell
This section is aimed at providing insights on how to manage the Dell PowerEdge VRTX Solution using Windows PowerShell.Read More
View ArticleOnCommand Unified Manager PowerShell CmdLets
I thought it would be helpful to provide an example of how to create a custom powershell cmdlet and Invoke API's for OnCommand Unified Manager 6.X (as it does not have any command line interface...
View Article#PSTip Ejecting and closing CDROM drive–the PowerShell way!
I came across a project on Github (nothing related to PowerShell though) that provides a web-based UI for running system commands. This is based on Node.js implementation and does not support Windows...
View ArticleHow to rename a domain computer with Windows PowerShell
Use PowerShell to shave time off routine tasks like renaming computers. Here are some commands to try.Read More
View ArticleGrab 1 line from within a Loop
I have this code and it works. $NetBIOS = get-content env:computername$objWMI = get-wmiobject -computername $NetBIOS -Namespace root\CIMV2 -Query "Select * from Win32_OfflineFilesItem" foreach ($obj in...
View ArticleArchiving x days old files
I have a need to archive files older that x days on file servers. I also needed this script to be something that a limited PowerShell admin could use. This is what I came up with.$Search = Read-Host...
View ArticleGet-WmiObject Win32_Computersystem | Format-List Name, manufacturer, model,...
Need to extract info using wmi for all laptops on domain.$strFilter = "computer" $objDomain = New-Object System.DirectoryServices.DirectoryEntry $objSearcher = New-Object...
View ArticleChecking Hyper-V Replication Health Using PowerShell Cmdlets
Hyper-V Replica is a disaster recovery technology introduced with Windows Server 2012 (learn more about Hyper-V Replica in our earlier article on the subject), and the Hyper-V Manager is a handy tool...
View ArticleSharePoint PowerShell Commands
Useful PowerShell commands working with SharePointRead More
View ArticlePowerScripting Podcast – Tommy Patterson from Microsoft on PowerShell and Azure
Tonight on the PowerScripting Podcast, we talk to Tommy Patterson about PowerShell and AzureRead More
View ArticlePowerShell Sort-Object gotcha’s
This week I’m again delivering a PowerShell workshop and during the use of the Sort-Object Cmdlet in the Pipeline we had a interesting discussion which I want to share with you.You all probably know...
View ArticlePowerShell Tools for Visual Studio 2012 problem
.ps1 cannot be loaded because running scripts is disabled on this system. For more information, see about_Execution_PoliciesRead More
View ArticleWhy does my search fail?
$NetBIOS = get-content env:computername$objWMI = get-wmiobject -computername $NetBIOS -Namespace root\CIMV2 -Query "Select * from Win32_OfflineFilesItem" | Where { $_.Path -like "*$NetBIOS*" } |...
View ArticleTry..Catch within a new-object?
Hey all I have a script and I am trying to perform a try...catch statement with a new object hash table but I am getting an error:Script$lines = @()foreach($msolUser in (Get-MSOLUser -All)){...
View ArticleArchive Fies older than X days.
HelloI have been using the script that Marc Johnson provided on Powershell.com. I have an issue when the script complets the first time everything runs ok and the files get moved to the archive...
View Articlewhats the best way to clean up or remove the server names?
HelloI am writing a script to audit and clean up our print scripts. The script will will get all of the printers out of text files in a network share. The design should get all unique printers mapped...
View ArticleBi-Directional Communication option of the Xerox Printers
How can i disable the di-directional communication option of the Multifunctional Xerox Printers.I wrote this Powershell script, but it doesn't work for Xerox Printers#_$PrintServers = @("PRT01",...
View Article