Some applications does not remove link after uninstall. Application is uninstalled but link remains pointing to nowhere. I need it to deploy via SCCM 2012. Investigations show that cmd files wont work so I made it in vbs. Here is my script file as far as I search the sctipts I found does not work for me so I put together vbs script if file exists, delete it.
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("C:\Users\Public\Desktop\E-ME.lnk") Then
fso.DeleteFile("C:\Users\Public\Desktop\E-ME.lnk")
Else WScript.Quit
End If
Rāda ziņas ar etiķeti vbs. Rādīt visas ziņas
Rāda ziņas ar etiķeti vbs. Rādīt visas ziņas
piektdiena, 2014. gada 30. maijs
pirmdiena, 2013. gada 4. marts
Enumerate windows local users and last logon time vbs
This script shows active as well inactive local windows users. Strange but I did not found this in internet so I had to make myself combining two scripts. So what it does, take property LastLogon for each user and writes in file LastLogon.txt PowerShell did not show any wmi property LastLogon for local Users. Script works fine on Windows Server 2008, not intended for domain users. You just need to create file LastLogon.txt in the same directory as vbs script and run it from Administrator command prompt. So it appears in the same directory as vbs script. Just save the code with extension vbs and it works great. Thanks to Roger Ling
Abonēt:
Ziņas (Atom)