Quantcast
Channel: PowerShell
Browsing all 15370 articles
Browse latest View live

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 Article


Powershell - 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 Article


Powershell 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 Article

Backup 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 Article

Scripting 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 Article


Save 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 Article

Powershell 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 Article

How 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 Article


Powershell: 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 Article


Script 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 Article

Image may be NSFW.
Clik here to view.

Net 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 Article

Powershell / 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 Article

Mapi 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 Article


New 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 Article

Pass 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 Article


PowerShell 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 Article

Image may be NSFW.
Clik here to view.

PowerShell 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 Article


Newbie 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 Article

Powershell 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 Article

Delete 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
Browsing all 15370 articles
Browse latest View live


Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>