Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Powershell

0 votes
1.2k views
1 answer
    I'm trying to copy a file to a new location, maintaining directory structure. $source = "c: ... path 'c:amoredifferentpathohefile.txt' See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I'm trying to write a PowerShell script to get the text within all the classes named "newstitle" from a website ... -First 5 } check-krpano See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    How do you format an array of hash tables with the Format-Table cmdlet? Example: $table = @( @{ColumnA= ... ColumnB 2 ColumnA Charlie ColumnB 3 See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
999 views
1 answer
    I have a string, which I have split using the code $CreateDT.Split(" "). I now want to manipulate two ... I separate these into two variables? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
955 views
1 answer
    I need to copy all *.doc files (but not folders whose names match *.doc) from a network folder \serversource ( ... and the file system is NTFS. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
938 views
1 answer
    I'm writing a simple script to delete USMT migration folders after a certain amount of days: ## Server List ## ... accomplish what I'm after? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    I would like to change the ACL of the C: drive. What im trying to do is remove ... ,Microsoft.PowerShell.Commands.SetAclCommand See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
890 views
1 answer
    I'm on Windows. I installed git and posh-git (some helpers for Windows PowerShell). I can add keys with ssh-add ... my repo. What is my problem? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
935 views
1 answer
    Can someone help me capture only the StatusCode of invoke-webrequest below so that I can determine if a site ... s that do multiple redirects. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
888 views
1 answer
    I am using a script that sets $Global:LastResult, how can I set an alias, say, last to access this variable See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    Is it possible to concatenate a secure string with variables and unsecure strings in PowerShell? I have a ... store each password separately. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am using following script to get disk space audit in our enterprise environment. Everything works fine ... SystemName,DeviceID,FreeSpace,Size See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have the following inputs - 2 json files one is the base one and the second contains the same properties ... that is possible with powershell? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
858 views
1 answer
    I am writing a simple script (windows powershell) to send automated emails. A computer will be running at ... read would be much appreciated See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
865 views
1 answer
    This seems so incredibly simple but I am missing something. I just need to add an array to array[0], array[ ... an object of type System.String. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    in VSCode is it possible to open the terminals in a separate window? So far my research has pointed to a ... curious if anyone has a solution? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
911 views
1 answer
    I want to create an array containing arrays of two numbers. Pretty straightforward. However, If I do not provide a ... Object[] System.Array 2 2 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    Would you possibly know why this error is being raised in response to the code below. User-name and ... powershell command prompt window?? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I want to do a progress bar of my script but then I need a total amount of folders. Is there a significant ... it with a foreach-object loop. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I'm trying to deploy multiple dacpac's during single build process by using PowerShell script. param( [string] ... written to the error stream. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.0k views
1 answer
    When you want to add an assembly from a network UNC share using the command: $scriptPath = Split-Path ($MyInvocation ... can I fix this problem? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I want copy whole folder to another folder using Copy-Item. My source folder c:ase contains some files: ... create the target folder before? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
768 views
1 answer
    I was assisting a user with this question, linked to my answer here: Powershell script to add users to A/D ... and the $PSItem won't follow? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
877 views
1 answer
    I have 2 Excel spreadsheets I am trying to compare: $OleDbAdapter = New-Object System.Data.OleDb.OleDbDataAdapter ... specifically won't work. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am trying to install a service on a remote machine using the powershell. So far I have the following: Invoke ... not relevant at the moment. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I'm having a challenging time getting compress-archive to do what I want... I have a root project folder and ... contain: /file1.js /file2.txt See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I need to run a script with PowerShell -Command "& scriptname", and I would really like it if the exit ... the whole shell. Any suggestions? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
883 views
1 answer
    I have a simple question regarding why something works the way it does and I cant seem to readily find ... with this terribly worded question. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...