Unable to enable "Appear Offline" in Microsoft Lync 2010 - lync-2010

I am unable to enable the Appear offline option in Microsfot Lync 2010 using Regedit and I have followed the following path but unable to find the "Communicator" folder in the below path and I unable to attached the error screenshot along with this question since I have less than 10 reputation and please find the below URL for the image.
http://picthost.net/image.php?di=WSQU
I even tried re-installing the software but still unable to find the above mentioned folder.
Please guide me to enable the folder and let me know if there is any other details required.
Thanks in advance.

1º Open Regedit
2º HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator" /V "EnableAppearOffline" /D 1 /T REG_DWORD /F

Related

NuGet.exe from command line gives "existing connection was forcibly closed by the remote host" error

I'm having problems calling NuGet.exe from the command line:
nuget.exe restore solution.sln
On my local machine, this runs without issue from the command line. On the build server, I immediately see the below error:
An existing connection was forcibly closed by the remote host
For background I'm in the process of setting up Jenkins on our build server for our .NET Framework applications.
This error occurs regardless of whether I have Jenkins run the command or I spin up a CMD window (Administrator or otherwise) and run it myself. Even the -Verbosity detailed flag comes up with nothing.
Oddly, when doing a restore against the solution within Visual Studio 2017, it works fine.
Has anyone come across this before or have any ideas?
So this turned out to be a problem with TLS. Having looked up a lot of articles and knowing some ongoing issues with TLS in various places I found this article:
Deprecating TLS 1.0 and 1.1 on NuGet.org
I applied the registry changes mentioned there (as below) and suddenly I got beyond this error
reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:64
reg add HKLM\SOFTWARE\Microsoft\.NETFramework\v4.0.30319 /v SystemDefaultTlsVersions /t REG_DWORD /d 1 /f /reg:32
I have seen similar behavior and it was due to our IT Security team blocking that particular domain. I could access it from our dev machines, but the build server (which was running not attached to the domain) was blocking.

prompt a user for input during silent .msi install

We are trying to create a deployment of a software called lanschool to our organization, via SCCM 2012. It functions basically by having an admin account create a channel that client accounts connect to for monitoring. We're using our admins phone extensions as their channel numbers.
The issue here is that We'd like to create a silent deployment package for this software, but would need some way to create a prompt during the install so that the admin can input their extension. Is there a way to accomplish this?
Can you launch the MSI with a command line that includes the data? This is the standard method of passing in data during a silent install. The required input values are specified as properties that can be input by the user in UI mode or passed in during silent mode, something like:
msiexec /I [path to msi file] MYCHANNEL=12345
where MYCHANNEL is the name of the public property.
A silent install with user input? Ok then :)
My initial reaction would be to try to do it with a custom action (a simple VB script for example). However something at the back of my mind (I don't have access to InstallShield right now to test this) is warning me that any attempt at interaction would not show and could either timeout or throw an error. Don't take my word for that though.
What I ended up doing is writing a bat file that prompted the user for their extension, stored it in a variable, and then added that variable data to the specified registry key. Code below:
::create a prompt for extension input and store input in variable "channelNumber"
SET /P channelNumber=Please enter your phone extension, this will be used as your Lanschool channel:
::shut down lanschool
TASKKILL /f /im teacher.exe
::write variable to reg key
REG ADD HKLM\Software\Wow6432Node\Lanschool\ /t REG_DWORD /v channel /d "%channelNumber%" /f
::start lanschool
PUSHD C:\program files (x86)\Lanschool
START Teacher.exe
EXIT

Restarting PC's and writing to the event log with a custom message

I have written a script in PowerShell that will remotely restart a list of PC's using the 'Restart-Computer' command.
Is there a way of adding a custom message to the systems event log, to explain that the computer has been restart by my script.
Here is the PowerShell code that I used to solve this problem as suggested by the user C.B. above.
Shutdown /r /f /m ComputerName /d P:0:1 /c "Your comment"
This code will force (/f) a shut down and reboot (/r) of a given PC and write to the event log with a custom comment (/c). Note that to write a custom comment a reason code will need to be supplied using the (/d) parameter. Also note that the order of parameters matters.
For a list of reason codes and syntax follow the links below.
http://ss64.com/nt/shutdown.html
http://technet.microsoft.com/en-us/library/cc732503(v=ws.10).aspx

How to use Volume Shadows Copy and Robocopy on Win7?

I’d like to backup my system with Robocopy and Powersell but Robocopy is not able to copy opened files.
Volume Shadows Copy seems a solution but I don’t find any clear and simple explanation how to use it.
Do you have any idea?
I’m running on Windows 7 x64 Enterprise.
Thanks for your help.
Franck
In order to perform a VSS snapshot on Windows 7, you can simply do a "System Restore". After, open an administrator console, type vssadmin list shadows. You are looking for the "Shadow Copy Volume" line in the most recent snapshot. Copy this, and do mountvol X: YOUR_VSS_PATH, and your VSS snap will be mounted on X:. After that, run robocopy on X: and you should be good to go.
You can mount the VSS shadow using mklink command. This Works in Servers and Workstations.
mklink is a native tool.
For example:
mklink /D C:\shadow_volume_1 \\?\GLOBALROOT\Device\HarddiskVolumeShadowCopy1\
More information can be found here: http://forensicswiki.org/wiki/Mount_shadow_volumes_on_disk_images

IIS 6.0 command line set execute permissions

I am looking for a way to set permissions on a virtual directory through command line.
I have a website setup with scripts only permission, but one of the child virtual directories needs to have scripts and executables.
So far, I haven't found a command line option to change the permissions for 6.0 - I saw the chacess command for 5.1 but it is not available in my system...
Is there an equivalent or another function that can do this for me?
Thanks,
Christy
Found it :-)
In case anyone else needs the information - here goes:
use the adsutil.vbs script (usually under inetpub/adminscripts) and type
adsutil.vbs set w3svc/[site id]/AccessExecute "True"
The [site id] is the unique id IIS gives your site. I found another script that gives the site number and name in a nice output:
http://blog.crowe.co.nz/archive/2005/12/08/346.aspx
Hope this helps!
Christy