Questions tagged [powershell-3.0]
Microsoft’s command-line scripting language. V 3.0, which was introduced in Windows 8 and Server 2012, supports code autocompletion (IntelliSense). Remote sessions are more reliable, and there is a bigger selection of cmdlets and built-in functions.
66
questions
28
votes
13
answers
223k
views
PowerShell Get List Of Folders Shared
I am trying to get a list of folders that are shared on a file share. At the moment I have two test folders:
\\MYPC\Test1
\\MYPC\Test2
This is the code I have at the moment:
$FileServer = Read-...
3
votes
1
answer
9k
views
Powershell to set default browser
I created a process using PowerShell to install Chrome. What I am looking to do now is to have PowerShell change the registry for the computer and change the default browser to Chrome.
I would ...
0
votes
1
answer
204
views
Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error message
I am running below script on my system to perform all sccm client actions trigger and getting below error.
Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error ...
0
votes
1
answer
407
views
Export data to excel by creating instance of the Excel.Application object in PowerShell
Currently i'm using ImportExcel module to fetch data from multiple csv file and export in single excel file. But due to network restriction from this month I am not able to install importexcel module. ...
1
vote
1
answer
436
views
validate particular column and its value using powershell
Validate Status Column using powershell. If any status column contain Not-compliant then overall status column needs to be displayed not-compliant. Attached data for your reference.
Trying below code ...
1
vote
1
answer
772
views
Copy files and only the parent folder the file resides
Copying files but not all the folders, just the one parent/relative folder in which contains the files.
Folder and Files structure:
ExcelData (Folder)
a. File1.xlsx
b. File2.xlsx
c. File3.xlsx
d. ...
2
votes
1
answer
2k
views
Powershell script to capture Screenshot
Don't want to use third party tool and module.
$ie = New-Object -ComObject InternetExplorer.Application
$ie.Visible = $true
$ie.Navigate("https://www.google.com")
$ie.FullScreen = $true
...
0
votes
1
answer
116
views
Exception calling "CopyFolder" with "4" argument(s): "The 'destUrl' argument is invalid."
I'm trying to copy local drive folder to targeted folder in online one drive but getting above error.
Below is the code tried: -
#Load SharePoint CSOM Assemblies
Add-Type -Path "C:\Program Files\...
1
vote
1
answer
928
views
Export-CSV column/row value as filename
I've got a bunch of csv files that each look like this:
DD-L-1_test.jaun.Csv
Parameter, Version, Status
OS, 21H2, Compliant
Chrome, 107.1.1, Compliant
DD-L-2_test.smith.Csv
Parameter, Version, Status
...
0
votes
1
answer
617
views
Form with Input Window, where a mechanism shall check if data has been entered
I need it to not close when user press enter or exit so that it mandate for user to make entry for all three box. I am new to powershell so I might be sounding akward but I can't find a good solution ...
36
votes
5
answers
182k
views
Using make from Windows PowerShell
Under Linux, sources of projects commonly come with Makefile's. Makefiles contain directives to build these projects using the command make. I am currently forced to use Windows, and so as to be able ...
0
votes
1
answer
30
views
Values from CSV instead of manual values
Question:
This Powershell code have manual values defined "Value 1 & value 2" , want these two to be from CSV file.
#Value 1
$blockedConnector1 = [pscustomobject]@{
id = ...
355
votes
12
answers
625k
views
Native alternative to wget in Windows PowerShell?
I know I can download and install the aformentioned library (wget for Windows), but my question is this:
In Windows PowerShell, is there a native alternative to wget?
I need wget simply to retrieve ...
283
votes
14
answers
374k
views
Equivalent of Linux `touch` to create an empty file with PowerShell [duplicate]
Is there an equivalent of touch in PowerShell?
For instance, in Linux I can create a new empty file by invoking:
touch filename
On Windows this is pretty awkward -- usually I just open a new instance ...
0
votes
0
answers
2k
views
uninstalling the chrome using powershell script
I am trying to uninstall google chrome using powershell script but it shows me a popup to choose uninstall/cancel. How can i supress this by choosing uninstall button?
Set-Location 'path\to\my\chrome' ...