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

Get value of an adjacent cell from a csv file in Powershell

Hi everyone,I have a script that will search a csv file for a particular value:In this example lets say my csv looks like thisCell A1                    Cell B1LEB                        FT1000Cell A1...

View Article


Out-file not putting data in file

So I have some code that will grab all the running Dlls. I cant get it to out-file or export-csv. It will create the file but sits at 0KB. If I take off the out-file pipe, data is displayed just fine...

View Article


Set-ADUser -DetailedName Script Not Working as Intended

Oh wise ones, hear my plea!Why does this script not change the display name in...

View Article

ADUC Saved Queries

Hello,I'm trying to write a function that I can put in my powershell profile that will let me create ADUC saved queries for our dynamic distribution groups so I can distribute those out to our staff to...

View Article

Get-GPO UserVersion and ComputerVersion troubles...

Ok, I'm trying to develop a tool here. Basically I want to get the specific version of a group policy by using Get-GPO, like this:...

View Article


Active Directory Script to Move Disabled Users

My goal is to move disabled user accounts associated to user mailboxes to a Disabled Users OU so I can remove them from our GAL.I have a script to move disabled users to a specific OU:Search-ADAccount...

View Article

Need Help with Datagrid G.U.I

Powershell#region LodAssemblies[Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")|Out-Null[Reflection.Assembly]::LoadWithPartialName("System.Drawing")|Out-Null#endregion#region...

View Article

What was your PowerShell project this week? 8/1/14

And just like that, July is past!  What have you been working on from a PowerShell perspective?  Heck, what cool projects are you working on regardless?

View Article


powershell commands

i really want to learn powershell commands. what is the best way to do that.

View Article


Powershell Script

Please everyone, can anybody show me step by step on how to create a backup script using powershell. i have several database servers i usually do daily backup. powershell scripting i think can help me...

View Article

Issues using this powershell script on a mapped network drive

Good Day!$OutFile = "C:\Permissions.csv"$Header = "Folder Path,IdentityReference,AccessControlType,IsInherited,InheritanceFlags,PropagationFlags"Del $OutFileAdd-Content -Value $Header -Path $OutFile...

View Article

Bit Flip how to in powershell

I can follow most PowerShell scripts and adapt them to my needs, but writing something from scratch, especially when "bit level" math is required, is, well, beyond me.  Does anyone have some examples...

View Article

How to populate ProxyAddresses attribute with mail attribute in AD

I am trying to update the ProxyAddresses attribute of ~3500 users, with the mail attribute of said users. This is in preparation for setting up DirSync to our existing O365 users.Right now, i have a...

View Article


HTML Powershell report Builtin OU group membership (Empty and Non-Empty)

Good Day all,Too bad Get-AdGroupMember will not return empty groups...arrgh. Anyway I am trying to write a script that will output a nice HTML email that lists all of the Groups and Members in the...

View Article

Shutdown\Startup VM Guest

Windows Server 2008 R2 host running A Hyper-V Windows 2000 Server guest VM.I am looking for a simple way (either batch, VBS or PowerShell command) to shutdown the guest VM and then start it up at a...

View Article


Get-ADUser properties only using email

This works great,PowershellGet-ADUser-Filter{EmailAddress-eq"user@domain.com"}However I can't figure out how to do this in bulk from a csv file that consists of just a column with the users email...

View Article

Mass Setting AD-User Cannot Change Password

Hello everyone,In our district we do not allow students to change their passwords.  I need a way to set this for each account in our Students OU.  I have a general idea but would like some advice.  For...

View Article


Learning Powershell

So I'm slowly learning PowerShell. I had a mission to write a script for task manager. I would need it to send me an email when the server restarted. I also needed the time, date, and name of the...

View Article

Need an powershell array person to help out...this is driving me nuts..

Hi, I am writing a script to grab all of the populated and non populated groups with members in an OU then email the results. Everything writes to an array which then gets converted to HTML and...

View Article

Running SQL query as a function

I know there is a way but I can't seem to get it working. How can I turn the below script into a function that I can call if certain conditions are met:Like:If $A = "Yes then Select-SQLFUNCTION else "...

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>