Search found 15436 matches
- Fri Mar 20, 2009 4:19 am
- Forum: VBScript
- Topic: DateLastAccessed Help
- Replies: 13
- Views: 8217
DateLastAccessed Help
The above code works the same on the file system or on a share. The FSO can take a UNC and use it just fine. hostnamesharename
- Fri Mar 20, 2009 3:53 am
- Forum: PowerShell
- Topic: Liat files open on a share by user and loaction
- Replies: 13
- Views: 9733
Liat files open on a share by user and loaction
Joel - I believe, to start with, we need to cahnge the "declare" to be: Declare UniCode Function. That, so far, has gotten the function to accept the "servername" string correctly. WHat I am working on now, as soon as I can get to it, is restating the memory lock and cpy section....
- Thu Mar 19, 2009 9:12 am
- Forum: PowerShell
- Topic: Liat files open on a share by user and loaction
- Replies: 13
- Views: 9733
Liat files open on a share by user and loaction
Thanks Jeff. I see I really screwed up the typing of the subject. Can't fix it now. I have teh VBS code but a PS method would be better. WinNT does not play well with PS as you know. I found a way to use NetApI32 "NetFileEnum". It's pretty cool as it compiles VB.NET code into a memory bloc...
- Thu Mar 19, 2009 5:31 am
- Forum: PowerShell
- Topic: Liat files open on a share by user and loaction
- Replies: 13
- Views: 9733
Liat files open on a share by user and loaction
Has anyone attempted to do this in PowerShell? I don't think it is possible with WMI and I have not seen the implementation of the SDK API functions in dotNET classes. I suspect it is there but well disguised. This is a constant ittitation for many admins when managing users. If we had a list of ope...
- Thu Mar 19, 2009 5:31 am
- Forum: PowerShell
- Topic: Liat files open on a share by user and loaction
- Replies: 13
- Views: 9733
Liat files open on a share by user and loaction
Has anyone attempted to do this in PowerShell? I don't think it is possible with WMI and I have not seen the implementation of the SDK API functions in dotNET classes. I suspect it is there but well disguised. This is a constant ittitation for many admins when managing users. If we had a list of ope...
- Wed Mar 18, 2009 6:06 am
- Forum: PowerShell
- Topic: process keystroke in PS
- Replies: 10
- Views: 6224
process keystroke in PS
Found it.. if ($key -eq '1'){ choice1}else{ choice2} $key is a character and not a number so it has to be in quotes. THis is why an switch would work better Switch (Show-Menu) { "1" {Write-Host "run get info code"} "2" {Write-Host "run show mailbox code"} defa...
- Wed Mar 18, 2009 5:19 am
- Forum: PowerShell
- Topic: process keystroke in PS
- Replies: 10
- Views: 6224
process keystroke in PS
This works perfectly for me: function Read-Key { Write-Host "Press a key..." ( [Console]::ReadKey($True) ).keychar } The outcome of the last staement is the result of teh function. YOu need todo this: $key=Read-Key This will assign the varaibale at teh saem level you are processing at. YOu...
- Wed Mar 18, 2009 3:41 am
- Forum: Other Scripting Languages
- Topic: HTA Error about IE Safety Settings
- Replies: 12
- Views: 29081
HTA Error about IE Safety Settings
I tested this idea and, on a Windows 2003 domain. it does not fail even when I get a warning about the location may not be safe for some things. The HTA overrides that if I choose to go ahead. An HTA should not come under cross domain scripting restrictions except when using an IFRAME. This is well ...
- Wed Mar 18, 2009 3:31 am
- Forum: Other Scripting Languages
- Topic: HTA Error about IE Safety Settings
- Replies: 12
- Views: 29081
HTA Error about IE Safety Settings
rasimmer - Have you seen it give this error? I know certain ActiveX controls will fail to load when run from an "untrusted" location such as the Internet or a network share. I don't remember seeing this error under those circumstances. If that is the cause then it is an easy fix. Good poin...
- Wed Mar 18, 2009 3:14 am
- Forum: Other Scripting Languages
- Topic: HTA Error about IE Safety Settings
- Replies: 12
- Views: 29081
HTA Error about IE Safety Settings
Does this function work when run as a vbscript. Th e function itself cannot cause this error by itself when run in an HTA. It may cause an error if you are using IEFrame(frame or iframe) or if you are using certain other ActiveX controls in the page. It will also happen if you are trying to launch &...