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

Help with a script that pulls list of AD users and returns manager info

Hi All,I am struggling with building a script to pull a list of AD users from a .csv and exports a list with their username, name, and managers email. I can pull this information using the below line...

View Article


O365 license by attribute name

I need to export O365 license based on a specific attribute value, like extensionAttribute1 value=AAA in AD. Can this be done. here is part of the script, how would I remove the " Name -eq '$Site'" and...

View Article


need script to Update the Users info from CSV

Hello All,I have the CSV file mixed enable and disable users with their information together, it is attached here and the command that I want to share it with you below.I need to update the user's...

View Article

error using Install-WindowsFeature

Hi all,need help with the following error and to be honest it is making me feel stupid as i cant find an answer and it shouldn't be this difficult. Scenario : Win 2016 server - IIS, .Net 4.6 and many...

View Article

Restart hanging PowerShell script

I've written a program that has to run quite a few PowerShell scripts. The problem is that these scripts occasionally just hang and do nothing. This causes several issues, firstly it means the program...

View Article


need help with bulk folder creation, hidden shares, add security groups , ntfs

i got a text file with a list of 600 Hidden shares that needs to be created on a local windows 2019 servers connected to a domain the shares needs to be created under this location d:\shares each share...

View Article

I want to get the Windows Version from computers in an OU using PowerShell.

I don't want the build number.  The code below will only show OS build number, but I would like to have it be just the version along with the computer name next to it (ex. Computer1 - 1709,Computer2 -...

View Article

find out which server is running iis

righty ho people... apologies for the question but being on coffee detox (dont ask - just know needs to be no more coffee for 2 weeks) - brain is not functioning right now...Got a old client who now...

View Article


Import-CSV With Line Breaks

Hi All,I'm trying to import a CSV and get the last column name however there is an issue where the export (from SQL) Contains line breaks.Export from...

View Article


Can not convert System.String error powershell.

It works with one printer but it does not work with multiple printers. I am getting System.String error:Powershell$OldServerName="oldservername"$NewServerName="newservername"#Get existing network...

View Article

Command substitution question.

Can anyone provide an explanation for this, please?TextPS C:\Users\user\empty Compare-Object ( write-output "hello" ) ( Get-FileHash .\2\test02 ) InputObject SideIndicator ----------- -------------...

View Article

Powershell - Import-CSV concatenated columns, where-object

I concatenated 3 columns of CSV file, and need to filter based on those 3 values.I managed to concatenate these 3 columns but no idea how to filter results based on it, below returns nothing:Import-Csv...

View Article

Experimental Featrures in PowerShell 7

As many of you may know, I'm excited about PowerShell 7 and the wealth of IT Pro goodness it brings. For many, it's a wonderful gift at this time of year! Inside PowerShell 7's Preview releases is a...

View Article


Powershell Profile not loading PowerCLI

A few years ago I created a PS profile to load PowerCLI modules and all was peachy. Recently upgraded my laptop to Win10 and the modules no longer load. I am assuming this is due to the version of...

View Article

Image may be NSFW.
Clik here to view.

Creating Adv Auditing GP with Powershell

I'm trying to create a script to create a couple of GPOs with Powershell. I cannot easily add a reg key to set adv audit policies but I found where this information is stored in a policy. I am able to...

View Article


Experimental Features in PowerShell 7

As many of you may know, I'm excited about PowerShell 7 and the wealth of IT Pro goodness it brings. For many, it's a wonderful gift at this time of year! Inside PowerShell 7's Preview releases is a...

View Article

Quote Of The Day, My Way

I know this isn't significant or all that useful to most, but I'm trying to share what I can.Remember the old Unix "QOTD"? My best-remembered favorite is "LOOK OUT, BEHIND YOU!"... :^)I miss that....

View Article


Powershell command - ADUser not in group

I need a command in powershell to tell me what users I have within the "security" OU that are not in the ADGroup "Management Staff"Please can anyone help?Thanks

View Article

Retrieve Specific Computer Information from AD

I am trying to pull specific computer information for system accountability. The problem im having is that I am pulling too much information that I don't want currently, and at the same time not all...

View Article

Powershell Script - Copy content from a file begin with a keyword

Hi Guys,I have a requirement of copying content from a text file and print the output where the copy should begin with matching keyword in a file. Attached here is the sample file.I need a script in...

View Article
Browsing all 15370 articles
Browse latest View live


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