drive-mapping


New-PSDrive does not support credentials?

非 Y 不嫁゛ 提交于 2019-12-29 07:40:07
问题 I am trying to map a drive in PowerShell 2.0 and getting this error? New-PSDrive –Name ftp –PSProvider FileSystem –Root “\\server\folder” -Credential $credential The provider does not support the use of credentials. Perform the operation again without specifying credentials. However, Get-Help New-PSDrive shows -Credential as a valid option? Is this a version issue in PS? Is there an alternative way to do the same...I would prefer to keep this within PS (since the drive is PS only then) and

how to map a software as a Drive?

眉间皱痕 提交于 2019-12-24 18:40:20
问题 I am trying to create a software like Ibackup.com. However, I am not sure how to make the software so that it'll map as a local Harddrive. And i am not sure where to start researching on this. Someone please give me some pointers. 回答1: I can point you to Dokan ( a user filesystem for windows like FUSE on linux), You install the driver then write the appropriate software for replying on IO request. On a more complex answer you have to work with the NT DDK to write a driver that would be your

Batch file called by scheduled task throws error when scheduled, runs fine when double clicked

徘徊边缘 提交于 2019-12-06 10:53:12
问题 I have a batch file that maps a networked drive. About a week or so ago the password expired, so the program calling the batch file started throwing errors. I've updated the password in the batch file, and when I double click on the batch file, the drive maps fine. However, when the scheduled task kicks off, I get the following error: Logon failure: unknown user name or bad password. Anyone seen this before? I've tried recreating the scheduled task, but it doesn't seem to make any difference.

Jenkins can't see mapped drive

柔情痞子 提交于 2019-12-03 20:54:19
问题 I'm getting the following error when trying to execute a build in Jenkins: Started by user anonymous Building in workspace C:\Users\mryan\git\AML [AML] $ cmd /c call C:\Users\MRYAN~1.ASA\AppData\Local\Temp\hudson3772834793680550098.bat C:\Users\mryan\git\AML>asc-tree -v cs1 . Array @filter_prune missing the @ in argument 1 of push() at C:\asc\asc\win2k/asc-tree. line 293. asc-tree.: ASC (=Z:\asc) is not a directory! Build step 'Execute Windows batch command' marked build as failure Finished:

Jenkins can't see mapped drive

穿精又带淫゛_ 提交于 2019-11-30 22:48:29
I'm getting the following error when trying to execute a build in Jenkins: Started by user anonymous Building in workspace C:\Users\mryan\git\AML [AML] $ cmd /c call C:\Users\MRYAN~1.ASA\AppData\Local\Temp\hudson3772834793680550098.bat C:\Users\mryan\git\AML>asc-tree -v cs1 . Array @filter_prune missing the @ in argument 1 of push() at C:\asc\asc\win2k/asc-tree. line 293. asc-tree.: ASC (=Z:\asc) is not a directory! Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE When I open a normal command prompt and run the same command (asc-tree -v cs1 .), it works okay

Getting command line output in VBScript (without writing to files)

你离开我真会死。 提交于 2019-11-26 23:17:04
问题 I'm using VBScript, and my goal is to be able to substitute a drive letter for a path of my choosing. I need the D drive, and if it's not available I need to check if it's already mapped to the right spot; then notify the user if it's not. I found this: http://technet.microsoft.com/en-us/library/ee156605.aspx and I'm trying to adapt their second example: Set objShell = WScript.CreateObject("WScript.Shell") Set objExecObject = objShell.Exec("cmd /c ping -n 3 -w 1000 157.59.0.1") Do While Not

工具导航Map