June 2016: What have you done with PowerShell?
So. June is gone. I do not remember giving permission for that to happen!Speaking of permissions, you now have permission to brag and advertise what you've accomplished in PowerShell this month!...
View ArticlePass the glasses - I can't see my error
I have the following syntax:Powershell[int]$Age=Read-Host'Enter age'Switch($Age){0{'Not born yet-cannot fly'}(($Age–GE1)–AND($Age–LE5)){'Infant Fare'}100{'You fly free in coach'}($Age-GE101){'You fly...
View ArticleUser folder and permissions PowerShell Script
Greetings all.This is my first foray into writing PowerShell scripts. Currently, I am attempting to compile a script that will:1. Search a specific OU containing user accounts in AD and dump the...
View ArticleDisable DNS record with PowerShell
Hello, can some one tell me how to disable this option with power shell
View ArticlePowerShell Help
On the command line I've been using:FORFILES /P "D:\Backups" /S /D -32 /C "cmd /c DEL @FILE"This deletes all files in the directory older than 32 days.ROBOCOPY "C:\Program Files...
View ArticlePowershell No title in window
I am trying to automate a small program to install hp drivers, however I cannot seem to find the title of the second window so I can pass ~ through as an enter key. the code works on the first part but...
View ArticleUser folder and permissions PowerShell Script
Greetings all.This is my first foray into writing PowerShell scripts. Currently, I am attempting to compile a script that will:1. Search a specific OU containing user accounts in AD and dump the...
View ArticleDisable DNS record with PowerShell
Hello, can some one tell me how to disable this option with power shell
View ArticlePowershell No title in window
I am trying to automate a small program to install hp drivers, however I cannot seem to find the title of the second window so I can pass ~ through as an enter key. the code works on the first part but...
View ArticleDisable DNS record with PowerShell
Hello, can some one tell me how to disable this option with power shell
View ArticlePowerShell Help
On the command line I've been using:FORFILES /P "D:\Backups" /S /D -32 /C "cmd /c DEL @FILE"This deletes all files in the directory older than 32 days.ROBOCOPY "C:\Program Files...
View ArticlePowershell No title in window
I am trying to automate a small program to install hp drivers, however I cannot seem to find the title of the second window so I can pass ~ through as an enter key. the code works on the first part but...
View ArticlePowershell - Dynamic Parameters
PowershellDynamicParam{$Attributes=new-objectSystem.Management.Automation.ParameterAttribute$Attributes.ParameterSetName="__AllParameterSets"$Attributes.Mandatory=$true$AttributeCollection=new-object-T...
View ArticleGood Source for Learning Powershell & Bash
I know those are two very different beasts but does anyone have a good source for learning Powershell & Bash. Scripting is one of my weaker areas that I am trying to bulk up in.
View ArticleNeed help with a PowerShell script - old AD accounts
Here's what I'm looking for - something that will query AD and find accounts that haven't been logged into in over 45 days. Once they're found, it'll disable the object and change the description to...
View ArticlePowershell Script for File Share Report
My objective is to export a list of file paths that former employees still have access to on the file share and from that list, I can remove their access. Luckily we have an OU called Former Employees...
View ArticleMicrosoft Text Analytics API 400 Error on PowerShell Call
Anyone else getting a 400 'bad request' error when utilizing Powershell v3+ Invoke-RestMethod command with the Cognitive Service? Maybe it's a little too late and we're just tired. We're experimenting...
View Articleshell script for automate reset password and sent mail to users
i need to maintain a file in server with user name and email need a bash -shell-script to take that user id and email from the file reset the password with a randomly generated one and email to the...
View ArticleAdd SIP to proxyAddresses
Hi there Spiceworks family, Is there a way to add SIP entry to proxyAddresses attribute for all users? I assume there should be a method of adding it across the domain rather than just using...
View Articlescript to find files with temp attributes at a dir depth >247 chars (aka 256)
I have started writing one, but before I invest more time (reinvent the wheel) just a quick check to see if this has already been done. Background: DFS can replicate directory structures >256 chars....
View Article