Possible to update the email address for all users in AD with a calculated...
Having been neglected for years I want to clean up my local AD. One of the fields which is almost always blank is email which is necessary since I am moving to Office 365’s Exchange platform. Is it...
View ArticleCan Powershell handle this and manage this?
Scenario: I have an output file that has the following inside of it: Product A Product B Product C I can have powershell say: If (Product A) then execute this If (Product B) then execute this If...
View ArticleUnable to retrieve system status
Hello Everyone, I am creating a powershell script to determine if a remote system is locked, signed onto, locked by a user and offline. I am able to get 3 out of the 4 conditions to work without...
View ArticleRunning ‘repadmin.exe’ from within a large script
Hello everyone. I am rather new to Powershell. I have been struggling with this all day and am at my wits end. I have a very large script (not written by me) that I am trying to troubleshoot. Some of...
View ArticleInvoke-Command using -WorkingDirectory help
Hi all, I am a bit of a powershell noob and I am trying to install an application on a pc using invoke command but the UNC path does not seem to register. My command is as follows; Invoke-Command...
View ArticleRunning anything in a Sybase database
Has anyone here created a connection to a Sybase database using powershell? I’m trying to create one and keep running into errors. To test, I’m just running a select * from a small table, but the end...
View ArticleHelp with Parameter
I would like to have the user only enter number’s 0-9 with a maximum of numbers of 7 For example: 6666666 1234567 7654321 I have this, but it’s giving me errors and I don’t know why Function Get-So {...
View ArticleHelp with selecting appropriate attributes within variable
I’ve used import-csv to import a bunch of attributes for adding into AD. I’ve got the Set-ADAttribute part down, but I think I need a tweak to my forEach loop. I had initially tried this with a single...
View Articlehow to grab only username from get-credential
Hi guys, I’m creating a script to map network drives over a VPN connection. To connect to the network drives, I’m pulling credentials through get-credential. write-host "Please enter your username and...
View ArticleNewbie needs help creating a small script
The script needs to: Read current CPU-usage in % Read available space disk partitions (2 of which were created in a previous script, 1 is 60% of disk capacity and the other is whatever is left (40% I...
View ArticleBypassing AuthenticodeSignature
Is there a way to enforce AllSigned scripts? I found numerous ways to bypass powershell security here, so what is the point to using Set-AuthenticodeSignature? submitted by /u/mpact0 [link] [comments]...
View ArticlePowershell Script Migration of Clustered VMs (xpost HyperV)
I have a problem I can’t figure out. How does Microsoft expect you to powershell script the migration of a Hyper-V Virtual Machine in a clustered environment? The answer I came up with is...
View ArticleCreate an HTML report of Active Directory Forest Information with PowerShell
A simple script I put together to give you a quick look at the Active Directory Infrastructure....
View ArticleAutomated Active Directory User Creation
I have been working on this for quite a while due to our domain restraints. I’ve added in some error checking in order to help things move along smoothly for our Help Desk people. This script will...
View ArticleRunning PowerShell Script From Sent To Menu Not Working
I have a PowerShell script that adds a prefix to my files based on a given range but when I try to run it using the Sent To context menu I get the following error “You must provide a value expression...
View ArticleFormatting a messagebox?
I am wanting to create a messagebox that shows the membersof for a computer in AD this is what i have so far. $computername = get-adcomputer Test $groups = get-adcomputer $computername -properties...
View ArticleCreating objects properly for export to JSON
Ok so I’ll try to be brief, feel free to ask any questions if I’m not clear. I have a JSON data file, lets say it looks like this: { "full": 1, "version": "*1.7.730*", "mode": 1, "sections": [ {...
View ArticleCan a PowerShell v5 Class Constructor be called from another Overload...
Hi all! Happy Holidays! First a note: This is not about assigning default values. My examples are simple for the sake brevity. The actual types I’m working with are more complex than [string] and...
View ArticleExporting AD help!
Guys, Hopefully someone will be able to help! I’m a bit of a noob when it comes to power shell, i’ve been able to create a few simple scripts that create user’s / group’s etc. Either way. I have been...
View ArticleHelp with arrays.
Hello, I am pretty much a beginner and am working on figuring this stuff out. I am a bit stuck so hoping someone can help a bit. (Edits forthcoming.. trying to add code) $e1 = Get-content -path...
View Article