How do I track remote powershell sessions?
I've only found Microsoft-Windows-Windows Remote Management/Operational and Windows PowerShell so far, but it doesn't seem to match up. It seems to track my PS sessions, but not others. What it does...
View ArticleHow to add log to this script?
All,I am new to Powershell so please be kind. I am creating a script that will call a .txt file with a list of specific pcs and then install a registry key on them. I have this part working. What I...
View ArticleHow to clear Manager attribute in specific OU using powershell?
I'mtrying to clear the Manager name under the "Organization" tab using PowerShell.I would like to do this for the disabled OU.Here is the script and error that I receive. Any help would be appreciated....
View ArticleHide powershell comments and properties
Hi allI have created a working script that creates AD users and their on prem mailbox. I would like to improve this, any help with my questions would be greatly appreciated!- Is it possible to hide /...
View ArticlePowershell Write-Output not always writing to console
Any ideas why "Woo, I'm working!" appears in the console but literally no other Write-Output in the script works? I took this apart and put it into a separate script without the functions and it worked...
View ArticlePowershell gathering data usage
Hello!Recently we decided to buy some Surface devices for our sales department. I try to make PS script that gathering for us information about data usage. I know there is command...
View Article-like and -notlike to filter an array in one line
I'm trying to differenciate between two devices in the same room. Both have the same $roomName however one has "exams" stuck on the end. Here I'm trying to separate them to make sure the right one is...
View ArticlePowershell - Output results to STDOUT
Hi all,Very new to Powershell and Script Deployment. We are trying to remove any rogue Local Admin accounts we have out in the field via PS Script. I've found a script online and input the exclusion...
View ArticleNew-Object : Constructor not found
Still rather new to PowerShell, and trying to figure out how to create an object with the right value on it to send to an API. I am getting this error:TextNew-Object : Constructor not found. Cannot...
View ArticleLinking Azure with Sharepoint Library
Hi, AllI've been working a fair bit on a script that can log on to both Azure and Sharepoint (on office365), access the invoices for my subscriptions in Azure, download those that I don't have, and log...
View ArticleEdit XML files based on mapping file (key/value pair)
I'm trying to figure out how to run through a bunch of XML files and update the < filename > tag in each one with the name of that particular file. Same for the < path > tag.I'm poking at...
View Articleconvert a list in a column to a single csv row
Hi All,I am trying to transpose an output from powershell, using a command on Hyper-V SCVMM. The command is:TextGet-VM | Select-Object name | ft -HideTableHeaders ...and the output I get is as...
View ArticleConverting Scandinavian characters with a PS script?
HiWe have deployed an automated script regarding a TeamViewer API update function. The script is not our handwriting (all thanks go to nickname DenisMcAuliffe who shared the original script under...
View ArticleRenaming What is Being Displayed
Greeting from the northeast snow, I thought I had everything working and done. Testing was completed multiple times with the right results.Then I was asked, can you make a change for us? Instead of...
View ArticleIssue with remote Rename-Computer script
I have created a script to bulk rename PCs based off of a .csv with OldName,NewName.For some reason however, on our domain I get access denied with the basic Rename-computer command (running Powershell...
View ArticleWSMan Works, WinRM Running, PSSession Doesn't Resolve Anything Just Hangs
I have three devices on the same network on the same domain.- Server1- Server2- Workstation1All devices have PSRemoting enabled. Server1 can Enter-PSSession on Server 2. Server2 can ` Enter-PSSession...
View ArticleHow to get/store the (6th,12th, 18th....) element from an array
Hello Guys I am very new to Powershell and programming. I am pretty sure somebody might have come across this issue before. Basically I have an array of 'n' elements. I am looking to get (6th, 12th,...
View ArticleGetting Start-ADSyncSyncCycle PS1 script to show results
I'm tying to write a larger script part of which runs an ADSync.If I run Start-ADSyncSyncCycle -PolicyType Delta in PowerShell it will show Result SuccessIf I save this to a .PS1 script and run it, its...
View ArticleDeployment script error
Hey spiceheads, having an issue with a script to deploy an agent on servers. Here's what I have so...
View ArticlePowershell help - How to double input variable
Hello All,I'm learning Powershell and i'm pretty much writing my first script.This scripts is supposed to prompt the user to select one of four menu options.I've sort of figured out most of it, but...
View Article