Powershell 2012R2 Install Role when you don't know exact name
So I am still studying for 70-410. I am trying to do everything from Powershell that I do from GUI. Here is a big stumbling block for me.How do you install a role when you don't know exactly how it is...
View ArticlePowershell - Quest Active Roles
Anyone knows how to get the details of an employee if I only have their display name in a notepad? What Im actually trying to get is their oracle ID that can be found in "Other Properties"
View ArticlePowershell AD Query
Hi guys, apologies for the remedial nature of this, i'm very new to using power shell, I'm trying to get powershell to query active directory for the current user and output it to a text file in the...
View ArticleBackup and 7zip powershell script
I have a script that creates several backup files and is supposed to zip them up afterward.This is the script:TextImport-Module "sqlps" -DisableNameChecking Invoke-Sqlcmd -Query "USE ASPNETDB; SELECT...
View ArticleScripting Office 2013 uninstall?
Been searching but can't find a working powershell script to uninstall office 2013. We're going to be rolling out O365 2016 here pretty soon and I don't want to have to manually uninstall 2013 from...
View ArticleSave Result from Get-ChildItem to an external variable
I am trying to find a way to store the result of Get-ChildItem to an external variable that I can use in another application.Is this even possible? Every thread I have followed has resulted in...
View ArticlePowershell Get-Item to get the last modified date from a CSV
Hi there,I'm completely a beginner in Powershell. I know how to produce the last modified date of a single file by doing the following:(Get-Item C:\test\file123.xlsx).LastWriteTime.toString() I'm not...
View ArticleHow can I check custom "status" field changes in a PS script output?
I have a script checking printers through WMI. The output looks like this:Name Status ---- ------ Xerox wc275.1 Offline dnj-4000.1 Offline How can I check if the "status" field changes and HOW MUCH...
View ArticlePowershell: How to create a self signed certificate then sign a script with it
I am looking for a good step by step A to Z tutorial with powershell on how to create a self signed certificate. Then using that certificate to sign a script. I've scoured the internet and have found...
View ArticleScript to add current user to local administrator group
I would like to know if it is possible spawn a command prompt as a local administrator with a script in a secure way.Ideally, the script could be copied to any users desktop, and double-clicking it...
View ArticleNet LocalGroup Command Issues
So, I'm attempting to add a domain user group to the local administrators group, and it's working fine for one - but not another.Groups are:And then the NET LOCALGROUP command gives me this:What am I...
View ArticlePowershell / O365 experts, importing ad users into signatures!
Hi Spiceheads,First time posting and a complete newbie so go easy on me. :) Attempting to get Powershell to create some O365 signatures and to pull the data from AD.Structure of AD is as follows...
View ArticleMapi powershell
Does anyone know how to set Mapi to true via powershell I have around 300 users that i need to set this to true for. thank you for your help
View ArticleNew user provisioning script
I have created a script to map a home drive, grant permissions to it, add the user to the correct security/limited access software groups, send an email about voicemail recording and put the PC in the...
View ArticlePass values from csv file to powershell scripts
I have a script that reads values from a CSV file and stores them as variables.I then issue a Start-Job that launches another script using those variables.I need the variables from the main script to...
View ArticlePowerShell Script AddDomainUsertoLocalGroup
So i have a script that i peiced together to add a user to a local admin group but for some reason it works on my windows 7 machine perfectly i move to the windows 10 machine and it errors out. here is...
View ArticlePowerShell 3.0 is not sorting by size correctly or is it me?
I was looking for a way to show folder sizes on various folders and servers without using third party tools when I found thisexcellent piece of...
View ArticleNewbie to PS and can't remove CRLF/blank line from end of file
We had a co worker that used to handle our Powershell script creation and he had helped me understand the basics, unfortunately, I am running into an issue where I have altered a script, which works,...
View ArticlePowershell script to install windows updates
HI all,I have a powershell script that installs windows updates automatically, mostly, after each update it comes up with a prompt to confirm, the script should be set to run quiet but it still comes...
View ArticleDelete folders from a NAS/ SAN UNC path listed in a csv file
Good day Gurus!I am working on a powershell script that will: --Add a line to a working csv file in the server each time an analyst does a robocopy(from the code below) - Please take note that each...
View Article