FAQ: Learning PowerShell tips to automate tasks and free up your time
With 2,300 cmdlets and counting, PowerShell can automate a lot of tasks and free up valuable time for admins. But as admins begin to tackle learning PowerShell, lots of questions come up about specific...
View ArticleNew book: Windows PowerShell 3.0 First Steps
Automate Windows administration tasks with ease by learning the fundamentals of Windows PowerShell 3.0.Get started with this powerful Windows administration toolAutomate Windows administration tasks...
View ArticleTop 10 Tips for Using PowerShell ISE
If you’re just getting started with PowerShell, chances are you’ll be doing your work in the Integrated Scripting Environment (ISE). Although there are many third-party products that improve upon the...
View ArticlePowerShell cmdlets ease SharePoint 2013 backup
SharePoint administrators have long used the STSADM utility as a tool for performing command-line backups of SharePoint site collections. However, Microsoft is phasing out legacy command-line tools in...
View ArticleGPO restricted groups
Hello,How do I configure a restricted group from a existing policy.I will add a new group to the GPO restricted groups.I tried with Set-GPRegistryValue, without success, any idea ?Thanks
View ArticleHow to get information about inactive cluster node
Hello,I need your help. I have 2-nodes cluster 2008.How go the name of inactive (standby, not current cluster owner) cluster node in powershell. Regardsppiesio
View ArticleSimple ? on how to construct an output file with current date in it
Afternoon, I have a ps script I just crafted that will recursively delete BAK files from a parent and child folders of said parent. Works like a champ. I cannot seem to get the easy part of outputting...
View ArticleRead File then Search OU's
I'm using the Quest PowerShell tools. But this code works perfect. $Inactive_computer_OU = 'OU=InactiveComputers,DC=Acme,DC=com'$sourceOU = 'Acme.com/FirmComputers'Set-QADPSSnapinSettings...
View ArticleIT Guide to Windows 8.1: Windows PowerShell 4.0 CMDLets
PowerShell is…uh…powerful. But, despite its powerful, able to leap tall buildings at a single bound, abilities, there are many IT Pros that haven't even run a single line of code. I've heard things...
View ArticleVBScript to Power shell
Not sure how to translate this vbscript into a working Power Shell script. rules = oSite.GetIPAccessRules()For Each key In rulesIf key.type = 0 ThenWScript.echo "AutoBan"autoban = key.BannedIPsFor...
View ArticleHelp Creating Backup script
Hi. I'm very new to powershell scripting but for a project I'm working on i think powershell would be the best solution to automate our backups. I'm trying to create a script that will back up folders...
View ArticleTime validation
I have a log file where I get dates in following format in each line... I need to validate the date and see if they are between 5 PM to 9 AM. If it matches then I need to export the lines to another...
View ArticleUse PowerShell to Add New Managed Servers in Windows Server 2012
When I’m speaking with IT Pros about the great multi-server management enhancements in Windows Server 2012, I’m frequently asked about ways in which servers can be programmatically added to the new...
View ArticleCreating MultiUsers with PS
HELLO ALL! I'm new with all this staff and i know some basic functions.i want to know how can i write script for creating users. i mean that when i run the script the PC just ask me for the FirstName...
View ArticleConnect to SQL Compact Edition (CE) using PowerShell
Hello,I support an application that deploys an .sdf file. I would like to query/edit the contents of the file using PowerShell.I'll assume I'll need at least CE and the SQLPS module installed. I'm OK...
View ArticleScriptBlock?
I am very new to PS:), but I think out of all the languages I have dabled with, this will be the one for me. I have decided to learn PS as best I can. So far, so good, I have little programming...
View ArticleSQL Query results to PowerShell Array.
Hi,First time I've posted on here so hi. I'm pretty new to SQL so sorry if this looks a little naff.I'm trying to query two tables. One has a username, associated with an ID, the other has a list of...
View Articlegwmi win32_product error ONLY in win xp
Hi All,I am creating a script to collect some system information for multiple servers. As a part of it, I am collecting softwares installed in group of machines. I am taking the list of softwares...
View ArticleProblem displaying expirty date of SSL certificate and the work around I used.
Hello AllI came across the following today, so thought I would make a brief post. I created a script to check expiry dates of SSL certificates (nice an easy with PowerShell thanks the the cert:...
View Articleview remote and locatin 32bit performance counter
i have third party 32 application installed win 2008 R2 64bit.. when I run below command to see counters I get an error saying cann't find any performance counter sets..Get-Counter -ListSet es1* |...
View Article