Quantcast
Channel: /r/powershell – How to Code .NET
Browsing all 8793 articles
Browse latest View live

How To Retrieve A Certificate From Azure Key Vault Via PowerShell

submitted by /u/tomatwork [link] [comments] The post How To Retrieve A Certificate From Azure Key Vault Via PowerShell appeared first on How to Code .NET.

View Article


Write-output | Out-File adding 0x00 hex character

I ran import-csv for a file, I had to read through the file, and separate the lines based on a date on each line of the CSV. I figure I should have just filtered it, and export-csv, but I went the...

View Article


Using powershell to pin points on a html map

Our Barracuda mail gateway is starting to see some traffic and I figured it could be a fun learning opportunity to learn a bit more scripting. I figure I need to mess around with API’s which I have...

View Article

It’s been a while since I’ve asked you folks a question…

I think this one is pretty straight forward and I think I already know the answer but I’m hoping to confirm. The question is more one of theory or functionality then application.   Let’s say you have...

View Article

Required roles for O365 Powershell access? [x-post /r/sysadmin]

Cross-posting since this might be the better venue for this discussion: I’m currently running a scheduled powershell script that connects to O365 and runs the Get-MSOLUser command. Right now the...

View Article


Clean Array Variable For Use

Hey guys, I’m having an issue getting an array variable to act like an array. I have a module that grabs address book from a Ricoh printer and all that is great, however the headers aren’t acting...

View Article

Need help with Git integration

I’ve downloaded Git for Windows, and made sure that I checked the Run Git from the Windows Command Prompt selection during installation. Here is a screencap showing the installation folder,...

View Article

Powershell script for finding pc’s with Office 2007

I am looking for a script that I can run to find pc’s that run Office 2007 on our network. Is there such a thing that can specifically target and give me a list of those pc’s? submitted by /u/jrueda86...

View Article


Basic question on combining arrays

Hi Everyone, I am hoping someone can help. I have some familiarity with PowerShell but I am looking for a bit of help on creating a table (array) that comes from two seperate variables. To elaborate a...

View Article


Update Registries from excel spreadsheet

I am having trouble finding a solution to this problem. Powershell is new to me and I need to figure out how to write a script that will update our server registries from data within a excel...

View Article

Powershell Form – Change picturebox image after show form

Just learning powershell here…. I’m running a simple form that display green boxes if a process on a remote computer is running. I do a loop (Do Until) every ten seconds and if the processes have...

View Article

Wondering if this is possible? Changing a user password on a remote domain as...

I’m not very skilled with Powershell, and I want to see if this is even possible before I work on it. Problem: Our parent company uses a different domain than we do, as we’re a semi-autonomous branch....

View Article

Searching registry keys for matches

Hey everyone. I’m just starting with powershell and while this script may never actually be used (I’m a lowly help desker) I’m using my tasks that are semi common to see if I can streamline them with...

View Article


Help cannot figure out how to set the query into a variable.

I have my query which returns model. Now I am trying to insert my query results into the reg key $model. What am I missing? Get-WmiObject Win32_Computersystem | Format-List model Set-ItemProperty...

View Article

Using one parameter on many commands at once

Hello, I’m pretty new with powershell and am interested to find out is it possible to make it use same parameter only written once for many commands. example – Get-ConnectionCheck -Computername NAME;...

View Article


New to powershell question

Starting to use PS. I tried to create a new AD user today, but it failed. How would you create a user with this info: Name- Joe Smith Password- password1 OU- New York Description- Sales I was logged...

View Article

How to remove multiple ‘member of’ groups?

Hey guys, So I have a script that adds a group called “terminated”, then sets it as the primary group, and then removes the ‘domain user’ group. Is there a way to modify the script so that it can...

View Article


Remote memory not correct?

Hey everyone, I’m using the following script to pull memory metrics from remote servers and it is usually spot on. However, on one server it is returning only half the installed memory. I’ve confirmed...

View Article

Office 365 Deployment

I am trying to write a script that will deploy O365. I have scripted and uninstalled and several other cases, but right now I am stuck on just getting the dang thing to run. It always “fails” on the...

View Article

Deactivate Office for a particular machine via PowerShell

Scenario – pool of loaner laptops. We know the machine names and want to automatically run a PowerShell job that will deactivate Office for any user account that has one of these machines activated....

View Article
Browsing all 8793 articles
Browse latest View live