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

Need help with nested if else statement

Hi, I am not a PowerShell expert by any means. Using google I was able to construct a script but it's not quite working as intended. It's supposed to create a local admin account on a list of servers...

View Article


use get-mailboxfolderstatistics to get total folder count

In Office 465 I wanted to see if there's anyway using the command below to get a simple folder count of how many folders the user I specify has. Simply running "Get-MailboxFolderStatistics -Identity...

View Article


Get-Hotfix, Admin Priviliges, and Scheduled Tasks.

On each of our servers, we have scheduled tasks run to output a list of all Windows Updates that have been installed for DR purposes.  The Get-Hotfix cmdlet is used to collect this...

View Article

Move file, rename, all profiles... I think I'm close!

I'm trying to create a script that will move a file from one location, add the time stamp and also and a file version I.E (1),(2),(3). I also need it to be able to be ran from any users profile but...

View Article

Create table from multi nested Array (JSON)

OK, I can usually get PowerShell to do what I want but I'm no programmer and this is starting to go beyond my knowledge but it is really bugging me as it seems so simple. We connect to several supplier...

View Article


Export FSRM File Group Member

I can runPowershellGet-FSRMFileGroup-name$filegroupname|Out-FileC:\blahblah.csvwhich gives me the name of the file group and not much else.I'm interested in getting a list of the members of that group?...

View Article

Iterates First Name adding each Char until a unique Username is found script

Hello,I'm trying to automate the users provisioning process on my company by creating powershell script to do that job,the below script is working well if I provide the UserName as an input.what im...

View Article

Updating Password in AD

I need to update student passwords. The Set-ADUser does not allow me update the passwords.Here is the code that I...

View Article


Open Source PowerShell or Power Sellout...

Found this link on PowerShell going open source - running on Mac OS and Linux...http://www.windowscentral.com/microsofts-powershell-now-open-sourced-available-lWhat are your thoughts on...

View Article


Google Cloud PowerShell

We've had PowerShell for AWS and Azure for a while, but this is a big announcement - google is previewing a PowerShell module for Google Cloud:https://cloud.google.com/powershell/This is just one more...

View Article

Can PowerShell be used for large scale Enterprise Applications?

I have been thinking a lot and while I am new at PowerShell, I use it almost every day. (Probably why I am on here asking so many questions) As a discussion topic do you think PowerShell could be use...

View Article

Listing all users from a specific OU using PowerShell

I ran this powershell cmdlet to list all users in OU and I have it exporting to CSV file.Get-ADUser -SearchBase “OU=XX,dc=XX,dc=XX,dc=XX,dc=gov” -Filter * -ResultSetSize 5000 | Select...

View Article

Registry Find and Replace script

Hi guys, i am just curious if you can help me what is my wrong with my script on finding a path replacement. I am new to scripting so any suggestions, comments or help would be really appreciated.What...

View Article


Powershell Shared Mailbox Information

Need some help with a powershell command.Im trying to get a list of all Office 365 Shared Mailboxes, along with information on Archive Status (enabled/disabled) and Size - but I need to filter it based...

View Article

SQL and Powershell

I am looking for a way to either create a stored procedure or a scheduled Powershell script to run on a regular basis and create a set of CSV files. I already have the queries and the output when...

View Article


Powershell Script: Check if User is logged on and reboot

To keep our computers patched, I am trying to create a Powershell script that will check to see if a computer needs a reboot to install windows updates, finish file operations, etc. If it does need a...

View Article

PS Query all users in a group but from multiple domains

Happy Friday! I'm no PS master but I can usually Google-fu my way through what I need but that's not working for me this morning. I am trying to write a PS query that will return all AD users in a...

View Article


Using a csv file with powershell doesn't seem to get all info

I'm using the Exchange Management Powershell on an Exchange 2013 server. When I run the following script, I get an error. The...

View Article

PowerShell Separating Table Variable

Not even sure if i am describing this right. But basically i want to take a query and this can be any query into a ForEach loop. But the caveat is the query needs to separate one part of the variable...

View Article

Trying to Create a PS script that will change last logged on user

I am trying to a write a Powershell Script That will change the last logged on user entry in the Registry. I am trying to use the Set-itemproperty however I am having difficulty navigating to that...

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>