PowerShell 3.0 Remoting vs PS 2.0
For the past few months I've been using PowerShell 2.0 with Remoting set up through Group Policy. Recently, the Microsoft Management Framework 3.0 came out as an optional update. We sent that update to...
View ArticleHow to use Read-Host cmdlet with AsSecureString parameter?
After the user enters a password, the only value available to the scripter is the password length.It's not even possible to compare 2 SecureString objects.In the script below, the 2 SecureString...
View ArticleUsing WBPolicy ,WBSchedule, ect
I have pieced together short script to help with my daily backup for my Exchange Server. Import-Module ServerManager$DailyBkupPolicy = New-WBPolicy Add-WBBareMetalRecovery -Policy...
View ArticleHow to get around access denied errors in powershell?
I'm having this issue in powershell where I can't access the contents of one folder to search via powershell. If I go into the console and go to the folder and open a text file I am able to see the...
View ArticleUpdating date field
I need a powershell script that can update a specific field on a specific document in a specific document library.It’s a date field and it belongs to a custom site-content type. The library includes...
View ArticlePart 1.1.3: Adding Computers ...
By Niklas Goude __ComObject logonCount : 0 sAMAccountName : NCC-1701-D location : Alpha Quadrant sAMAccountType : 805306368 objectCategory : CN=Computer,CN=Schema,CN=Configuration,DC=powershell,DC=...
View ArticleMissing 'in' after variable in foreach loop (Powershell v3 vs v2)
In troubleshooting an issue with wmi queries and their connections not closing, I've read things that indicate powershell V3 should resolve my issues. I'm currently attempting to run a script that...
View Articleecho writing and python
When writing to a .py file using echo, when I open the file up in python I get an format as seen below. The first line starts with "ÿþ" and every letter has a space between each other.what I write in...
View ArticleFormatting with Get-Content
I am having an issue and perhaps I am going about it all wrong.I am working on a auditing script and I am trying to get the COMPUTER RSOP to be placed into my audit results. I am trying to make this...
View ArticleSend-MailMessage without authentication
I'm running scripts under domain accounts which are sending various mails using the Send-MailMessage cmdlet with various sender addresses.Unfortunately Send-MailMessage always authenticates with that...
View Articlehow to get a content of a file to event log
I have got PS script to get the Regkey count to a text file. I am using this script in Task Scheduler & Can you please let me know if we can get the content of that file and have that logged to...
View ArticlePreparing a string that contains both single and double quotes for PowerShell
I'm using PowerShell in a Microsoft Orchestrator 2012 activity. Manipulating data from Microsoft SCOM 2012 Alert. When subscribing to the Description string from SCOM alert, the string can contain...
View ArticleGPO delegation Custom security settings
Hello!I'm not sure if this is the correct section, so please point me in the right direction if i'm wrong. Altso before i start i want to inform you that I'm still kinda new to PS scripting so the code...
View ArticleUnix To PowerShell – Tac
PowerShell is definitely gaining momentum in the windows scripting world but I still hear folks wanting to rely on Unix based tools to get their job done. In this series of posts I’m going to look at...
View ArticleTrainSignal Releases PowerShell 3.0 New Features Training
TrainSignal, the global leader in professional computer training, announced the release of their PowerShell v3 New Features training.Read More
View ArticleThree PowerShell Account Tweaks
Last month, in “Doubling Up Active Directory PowerShell Cmdlets,” I showed you how to start building useful PowerShell tools, such as the familiar one-liner that lets you find everyone who hasn't...
View Articlecan the security warning be disabled in v1.0?
I wrote a small script to collect SQL server versions and services, put it into a script and it is being called by a .cmd file (basically passing the computername to powershell to create the output...
View ArticleDoubling Up Active Directory PowerShell Cmdlets
For the past few months, I've shown you the first (and hardest) part of PowerShell Active Directory (AD) one-liners: the query. (See "Automating PowerShell Reports, Part 1," and "Automating PowerShell...
View ArticleManaging Hyper-V with PowerShell
There's no doubt that PowerShell is Microsoft's preferred server management tool heading into the future—and for many good reasons. For starters, with Windows Server 2012, there's a new capability for...
View ArticleHow to change an Office 365 password policy using PowerShell
I recently noticed that my Windows phone stopped receiving email from my Office 365 account. After a few troubleshooting attempts, I discovered that my Office 365 password had expired, and because I...
View Article