Search found 318 matches
- Wed Nov 04, 2020 11:21 am
- Forum: PowerShell
- Topic: Calling function in a Parallel foreach loop
- Replies: 23
- Views: 13811
Re: Calling function in a Parallel foreach loop
Cant seem to find any documentation on calling outside functions. Will write something and see if I can get it to work.
- Tue Nov 03, 2020 9:16 am
- Forum: PowerShell
- Topic: Calling function in a Parallel foreach loop
- Replies: 23
- Views: 13811
Calling function in a Parallel foreach loop
Wanted to know if I created 3 function and wanted to call them in a foreach Parallel loop is this possible? I have been searching and I dont see anyone trying to do this.
- Sun Oct 04, 2020 12:37 pm
- Forum: PowerShell
- Topic: LanmanServer Shares
- Replies: 6
- Views: 4342
Re: LanmanServer Shares
It will work without a reboot just have to restart server service. Also I am not trying to make a new share but just adjust a share path. It looks like New-SMbshare makes a new share. Is not possible to just change the path of the share?
- Sun Oct 04, 2020 10:41 am
- Forum: PowerShell
- Topic: LanmanServer Shares
- Replies: 6
- Views: 4342
Re: LanmanServer Shares
an anyone help with which direction to go with this issue I am having.
- Wed Sep 30, 2020 9:57 am
- Forum: PowerShell
- Topic: LanmanServer Shares
- Replies: 6
- Views: 4342
Re: LanmanServer Shares
I want to keep the security settings for the share. I jsut need to change the path of the share. Also want to do this across remote servers. I dont want to create I want to modify. So am assuming I can use Set-SmbShare with invoke-command??
- Wed Sep 30, 2020 6:44 am
- Forum: PowerShell
- Topic: LanmanServer Shares
- Replies: 6
- Views: 4342
LanmanServer Shares
I am trying to change only the path for LanmanServer Shares in the registry. I am using the below but I am finding that is is not working. Am thinking that it is because path is a Deserialized.System.String[] and I am just creating a string. So it is not being read right. I am using the code below. ...
- Tue Jul 07, 2020 7:44 am
- Forum: PowerShell
- Topic: .net remote install
- Replies: 12
- Views: 5801
Re: .net remote install
Have a quick question how can I not make the not path static? I tried the using: but it seems to not work. Invoke-Command does not see the path. $path = 'C:\classInstalls\ndp48-x86-x64-allos-enu.exe' Invoke-Command -ComputerName $computerName -ArgumentList "/q /norestart" -ScriptBlock { St...
- Mon Jul 06, 2020 10:40 am
- Forum: PowerShell
- Topic: .net remote install
- Replies: 12
- Views: 5801
Re: .net remote install
Ok figured out that this script actually works. Needs a restart to be fully install. Just added restart and registry check for the version. lol realized that I have norestart arg and needed to remove it.
- Wed Jul 01, 2020 4:28 pm
- Forum: PowerShell
- Topic: .net remote install
- Replies: 12
- Views: 5801
Re: .net remote install
This is the .net installer. Why would it not work? will it be better I guess to put in a bat file. Hate to do that but will if have to.
- Wed Jul 01, 2020 4:21 pm
- Forum: PowerShell
- Topic: .net remote install
- Replies: 12
- Views: 5801
Re: .net remote install
That's the thing I am not getting an error. It just run and comes back . I even tried to run it locally and I just get the below as well with Passthru. No errors at all weird. Invoke-Command -ArgumentList "/q /norestart" -ScriptBlock {Start-Process -FilePath 'C:\tmp\ndp48-x86-x64-allos-enu...