Active Directory Import users from csv through powershell
Hi,I have tried several scripts to import users into AD via CSV. I'd like to simplify the import if I can. Here's what I'd like to use:Import-Csv "c:\temp\Users.csv" | foreach-object...
View ArticleSetting Attribute msPKI-RA-Application-Policies on a certificate in Powershell
Having followed the instructions on this thread https://social.technet.microsoft.com/Forums/en/winserverpowershell/thread/347acc93-8352-4535-ab1a-23ebd49eea22 i have got stuck trying to set the...
View Articlerestart-service (get-service) | set-serivce don't work on remote computer
Hi guys, once again I'm begging for pardon if this is a dumb question. I have some trouble pipeline the command as I want to. Let's imagine I have two different computers in the same network (computer...
View ArticleGet-ChildItem -include not accept suffix parameters from settings env
Hello,I am trying to run the command "Get-ChidItem -include $Extensions" but not getting anything.$Extensions = "*.log,*.txt"When running it "Get-ChidItem -include *.log,*.txt" it is working like...
View ArticleSubtract the each value in the csv file
I would like to create a script to find different in the value between two report. This script subtract the each value in the csv file. Is that possible?There are two csv...
View ArticleGet folder properties from a collection of servers
Im new to powershell and need a little help. I have a script put together that does what I need it to do on a single server but I want it to query the folder properties of a collection of servers and...
View ArticleNeed some advice and help querying for a users domain and setting a specific...
Hello Scripting Community,Normally I'd start out with a bit of an introduction but I'm pretty pressed for time on a small issue I am having. I am lead to believe that what I want to do is completely...
View ArticlePassing Credentials ($cred) in PS Script?
Alright Guys, i have a question regarding powershell script. I would like to run powershell script on multiple PCs (obviously using remoting), the problem is that i am in a workgroup enviorment hence I...
View ArticleBackup a database and restore to another server
I would like to automate the following task using powershell.Do a full backup of production database with copy only, then restore it to a remote testing server.Anyone has existing powershell script...
View Articletrying to execute a instruction only on a folder that has (at the same time)...
Please I need help. I had never worked before with powershell and I am trying to execute a instruction only on a folder that has (at the same time) two files (one is update.exe and the other one is...
View ArticlePowershell Exchange 2010 Delete Folder in Mailbox / Or Delete Mail In Certain...
I can't seem to work out how to delete a certain folder in a mailbox. I'm importing a PST to a mailbox and ideally would be to use the -DeleteContent switch, but that cmdlet isn't available in Exchange...
View ArticleHow to a Remove Distribution Point From Package using PowerShell in SCCM 2012?
Am new to Powershell, could someone tell me, How to Remove a Distribution Point From Package using PowerShell in SCCM 2012?i was able to find powershell scripts to remove a package from a...
View ArticleHow to Distributing an application in SCCM 2012 to Distribution points using...
Does anyone know How to Distributing an application in SCCM 2012 to Distribution points using PowerShell?
View ArticleIs it possible to change operator's color in Windows PowerShell ISE Host's...
Operators like -eq, -gt, -like, =, +=, etc...If so, how?•I accept you disagree with me. However, never, ever, make this error again! Louvado seja aquele que criou a Mulher, o Amor, a Matemática “ e o...
View ArticleChange Owner Script
Hello All! Over the past couple of months, I have been trying to figure out a way to point our users Local profile, to their soon to be, Domain profile. After lots of research, the Change Owner method,...
View ArticleIs there a simple cacls cmdlet equivelent?
I am making some scripts in Powershell to automate server builds.I am looking for a simple powershell command that will do the same as this:echo y|cacls e:\ /T /g everyone:Falthough it is not a...
View ArticleFetch a Hyper-V VM's Demand Memory value
Greetings everyone. I'm trying to use powershell to query my Hyper-V cluster for it's nodes, and then for each node query for it's list of hosted VM's. All that works fine, my issue is then probing...
View ArticleThe term 'Get-NetIPConfiguration' is not recongnized as the name of a cmdlet...
Hello, when i tried to run the following cmdlet 'Get-NetIPConfiguration'I get the following error:Get-NetIPConfiguration : The term 'Get-NetIPConfiguration' is not recognized as the name of a cmdlet,...
View ArticleParameter Question
Hi All, Quick question on something I've come across recently. In the example below( and in other similar ones), the 'ComputerName' parameter that has been set is being fed '$ComputerName.' After...
View ArticleUsing PowerShell to "uncheck" the box next "Enable LMHOSTS Lookup"
I am using a PowerShell script to set the WINSEnableLMHostsLookup property on a NIC to false. When I then read the property, it is in fact set to False but it does not uncheck the box on the WINS tab...
View Article