Script hangs on printer creation. $Printer.put()
I have a working powershell script for creating printers on Windows 7 workstations. I'm trying to update the same script by adding a GUI that will allow me to select and create multiple printers. My...
View ArticleCheck that a filename was passed when you execute ps1
I am very new to ps1 scripting (first day). Trying something very simple, trying to make sure that a file name is passed when script is executed and if not display a message to the user.This doesn't...
View ArticleCalling Variables from another file
What I am trying to do is: 1) Create a central file that contains multiple variables like this. $report = "/home/report" $report 2 = "/home/report2" $user...
View ArticleFind newly added Users that do not have the correct group membership in their...
Greetings All Professional Experts,I can reference an OU with groups that holds all Replication members, then I have to find newly created users that have been placed in their correct OU, but have not...
View ArticleOutput Full Lines in a Text File to a New File
I am trying to read a source file, then output only lines that start with a specific string to a new file. The issue that I am having is that the lines are long (1000+ chars) and the outputted lines...
View Articlecoach outlet online vdaK YUTB MFf0N
This series of actions completed in just one second, a time for lying on the ground Si Qingqing are dumbfounded. Who coach bags is, why bother to come ?, Li Jiakang mention of Zhao Yuhong Menheng lying...
View ArticleIssue with an If statement
Hi Everyone, id love some help with the below script if anyone can shed some light. Im sure its something simple im not looking at. The script emails users in AD whos accounts are expiring within 14...
View ArticleOut-GridView command assitance
Hi All,I wrote script to look for USB stick name and show that in out-gridview with its statusProblem is that out-gridview closes window when script finishes. Currently powershell i using is 1.0 so i...
View ArticleNew to Powershell
Hi, I am new to Powershell only been using it for 3 weeks and I wanna learn how to create scripts, my first script I like to create is one with the Get-WMIObject -List that will display all Win32...
View ArticleSQL powershell to query and update the tables
I have this script and I want to update one of table or datafield but it didn't work.#> function SQL-Update { param ( [string]$server=SQL2012, [string]$database=Test,...
View ArticleNeed some Help with a scritp tasked of me.
Hello all,I’m a novice at PowerShell but none the less I have been asked to create a PS script based on the merit that I’m the only one with any experience using it at my office; albeit limited.The...
View Articlemove-ADObject
$PCNAME = Get-Content env:computername $MoveOU = "OU=blake,OU=Workstations,DC=acme,DC=org"Get-ADComputer $PCNAME | Move-ADObject -TargetPath $MoveOUThe above code runs without error yet my machine does...
View ArticleIT/Dev Connections 2014 Sessions Collateral and Downloads
If you missed it, you missed an event that was extremely unique and powerful. We brought in the best speakers, supplying the best topics and content to make the conference a truly rewarding experience...
View ArticleQuick Hits: Adding Items to an Array and a Look at Performance
I had some comments on a recent performance comparison article that were well received and encouraged me to write some more of these similar articles. So without further ado, lets get started on...
View ArticleExtending AlwaysOn Availability Group to Remote Azure Datacenter (PowerShell)
If you are looking for multi region continuous availability, by extending your current availability group to a remote Azure datacenter, then this blog is for you. We start with an existing availability...
View ArticleStart-Transcript Now Available in the PowerShell ISE in PowerShell v5
Prior to PowerShell v5 it was not possible to use Start-Transcript in the PowerShell ISE, it could only be used in the standard PowerShell console. You would receive the error:Read More
View ArticlePowerShell File Frontier, Part 5: Analyzing Compressed Flies
Let's pick up where we left off using the compression classes from the .NET Framework.Read More
View ArticlePowerShell File Frontier, Part 4: Zipped Files
I hope you've been enjoying our exploration of file management techniques. Today, I want to start down a slightly different path. As with all of my Prof. PowerShell the journey is just as important as...
View ArticleStrange "Named Pipes Provider, error: 40" when accessing a class in an assembly
I have a PS script that is executed from a TSQL Agent Job. It uses ADO to retrieve SQL data and call SQL stored procs. That part all works well. But at the very end it calls a custom DLL and it chokes...
View ArticleImport GPO using CSV
Hi Masters, I have created PS script that nicely handling GPO links(import etc.) that working well, butDo you have any ideia or give a hint, How can I develop this script better or simplier? Any idea...
View Article